﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TSharp.Core.Osgi;
using System.IO;
using Moq;
using TSharp.Core.TestUtil;


namespace Wicresot.CoreTests
{
    [TestClass]
    public class FluentMoqTest
    {

        public void MyClassInitialize(TestContext context, Type startType)
        { 
            TestHelper.SetupTest(typeof(FluentMoqTest));
        }

        [TestInitialize]
        public void Init()
        {
            MyClassInitialize(null, typeof(FluentMoqTest));
        }
        [TestMethod]
        public void TestMethod1()
        {
            var s = "abcd中国啊的身份问日晚热弃我而去玩儿去玩儿去玩儿are格瑞特惹我天气而弃我而去挖到发哦i额外人大否额外那份";
            StringBuilder sout = new StringBuilder();
            foreach (var c in s)
            {
                Console.Write(string.Format("&#{0};", (int)c));
                sout.Append(char.ConvertFromUtf32((int)c));
            }
            Console.WriteLine(sout);
        }
        [TestMethod]
        public void A()
        {
            var m = new Mock<IDataDependency>();

            m.SetReturnsDefault("");
            m.Setup(x => x.GetData()).Returns("TTT").Verifiable();
            var data = m.Object;
            Console.Write(m.Object.GetData());
        }
    }
}
